﻿using System.IO;

namespace Registration
{
    public class NameFormatter
    {
        public virtual string FormatName(string firstName, string surname)
        {
            return firstName + " " + surname;
        }
    }

    public partial class Driver
    {
        public static Registration.NameFormatter NameFormatter = new NameFormatter();

        public string FullName { get { return NameFormatter.FormatName(FirstName, Surname); } }
        public byte[] ImageBytes
        {
            get
            {
               return File.ReadAllBytes(this.PhotoPath);
            }
        }
    }
}
